#include "AppliedFieldVector3.h"

#include<cmath>

#include "Constants.h"
#include "Parameters.h"

AppliedFieldVector3::AppliedFieldVector3(Clock clock,Pulse *field)
{
  x=field->getLevel(clock.getTimeStamp())*sin(field->getAngle()*M_PI/180)*cos(field->getAngle2()*M_PI/180)*1E-3/Constants::MU0;
  y=field->getLevel(clock.getTimeStamp())*sin(field->getAngle()*M_PI/180)*sin(field->getAngle2()*M_PI/180)*1E-3/Constants::MU0; 
  z=field->getLevel(clock.getTimeStamp())*cos(field->getAngle()*M_PI/180)*1E-3/Constants::MU0;
}

AppliedFieldVector3::~AppliedFieldVector3()
{

}
